package com.gaswell.proxy;

import com.gaswell.proxy.jdk.JdkProxyFactory;

public class SmsServiceImpl implements SmsService {
    public String send(String message) {
        System.out.println("send message:" + message);
        return message;
    }

    public static void jdkProxyTest(){
        SmsService smsService = (SmsService) JdkProxyFactory.getProxy(new SmsServiceImpl());
        smsService.send("java");
    }



    public static void main(String[] args) {
        jdkProxyTest();
    }


}
